.container {
  padding: 1rem; /* 16px */
  min-height: calc(100vh - 8.75rem); /* 140px */
  background: #f5f5f5;
  width: 100%;
  overflow-x: hidden;
}

.header {
  text-align: center;
  margin-bottom: 1.25rem; /* 20px */
}

.title {
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.subtitle {
  font-size: 0.875rem; /* 14px */
  color: #666;
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
}

.productCard {
  border-radius: 0.75rem; /* 12px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-0.125rem); /* -2px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.productImage {
  position: relative;
  width: 100%;
  height: 10rem; /* 160px */
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  
  .productCard:hover & {
    transform: scale(1.05);
  }
}

.favoriteBtn {
  position: absolute;
  top: 0.5rem; /* 8px */
  right: 0.5rem; /* 8px */
  width: 2rem; /* 32px */
  height: 2rem; /* 32px */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
  }
}

.productInfo {
  padding: 0.75rem; /* 12px */
}

.productName {
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; /* 8px */
}

.ratingText {
  font-size: 0.75rem; /* 12px */
  color: #666;
  margin-left: 0.25rem; /* 4px */
}

.sales {
  font-size: 0.75rem; /* 12px */
  color: #999;
}

.priceSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

.currentPrice {
  font-size: 1rem; /* 16px */
  font-weight: bold;
  color: #ff4d4f;
}

.originalPrice {
  font-size: 0.75rem; /* 12px */
  color: #999;
  text-decoration: line-through;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem; /* 12px */
    min-height: calc(100vh - 7.5rem); /* 120px */
  }
  
  .title {
    font-size: 1.25rem; /* 20px */
  }
  
  .subtitle {
    font-size: 0.75rem; /* 12px */
  }
  
  .productImage {
    height: 8.75rem; /* 140px */
  }
  
  .productName {
    font-size: 0.8125rem; /* 13px */
  }
  
  .currentPrice {
    font-size: 0.875rem; /* 14px */
  }
  
  .originalPrice {
    font-size: 0.6875rem; /* 11px */
  }
  
  .ratingText,
  .sales {
    font-size: 0.6875rem; /* 11px */
  }
}
